package com.hp.webfluxclient.entity;

import com.hp.webfluxclient.api.IUserApi;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.lang.reflect.Method;

/**
 * @author dongxing
 **/

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class User {

    private String id;

    private String name;

    private Integer age;


    public static void main(String[] args) {

//        Object o = IUserApi.class;
//        Class<?> aClass = o.getClass();
        Class<?> aClass = IUserApi.class;



        Method[] methods = aClass.getMethods();

        for (Method method : methods) {
            System.out.println(method.getName());
        }


    }
}
